package com.njupt.yanglonglong.report.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njupt.yanglonglong.report.demo.dto.CourseTeacherInfoDto;
import com.njupt.yanglonglong.report.demo.entity.Course;
import com.njupt.yanglonglong.report.demo.entity.RCourseTeacher;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Entity com.njupt.yanglonglong.report.demo.entity.RCourseTeacher
 */
@Repository
public interface RCourseTeacherMapper extends BaseMapper<RCourseTeacher> {


    List<Course> getAllByTeacherId(String teacherId);

    List<CourseTeacherInfoDto> queryOpenedCourses(String stuId);
}
